package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//  INDI_FANA 对私_理财明细
type INDI_FANA struct {
	NO        int       `gorm:"column:ID"` //
	ACID      int       `gorm:"column:ACID"`
	SSCP      string    `gorm:"column:所属产品"`
	IDNO      string    `gorm:"column:身份证号"`
	NAME      string    `gorm:"column:客户名称"`
	ACNO      string    `gorm:"column:帐号"`
	CANO      string    `gorm:"column:卡号"`
	YBTH      string    `gorm:"column:一本通号"`
	CYNO      string    `gorm:"column:币种"`
	OrganName string    `gorm:"column:办理网点"`
	UTID      int       `gorm:"column:UTID"`
	XSDT      time.Time `gorm:"column:销售日期";type:date;`
	QXDT      time.Time `gorm:"column:起息日";type:date;`
	DQDT      time.Time `gorm:"column:到期日";type:date;`
	DQZT      string    `gorm:"column:当前状态"`
	XSJE      float64   `gorm:"column:销售金额"`
	ACBL      float64   `gorm:"column:余额"`
	YRJ       float64   `gorm:"column:月日均"`
	JRJ       float64   `gorm:"column:季日均"`
	NRJ       float64   `gorm:"column:年日均"`
	KKSYL     float64   `gorm:"column:客户收益率"`
	FHSYL     float64   `gorm:"column:分行收益率"`
	YWSR      float64   `gorm:"column:业务收入"`
	LCBZ      string    `gorm:"column:理财类型"`
	YXBZ      string    `gorm:"column:有效标志"`
	WDH       string    `gorm:"column:网点号"`
	ISDIVI    bool      `gorm:"column:ISDIVI"`
}

//TableName User用户表名
func (INDI_FANA) TableName() string {
	return "V_对私_理财"

}

//对私_理财明细
func INDI_FANAEF() base.EntityFunc {
	return func() interface{} {
		entity := INDI_FANA{}
		return &entity
	}
}

//对私_理财明细
func INDI_FANAESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []INDI_FANA
		return &entities
	}
}
func init() {
	dao := base.NewDefaultDao(INDI_FANAEF(), INDI_FANAESF(), nil)
	filter := base.DefaultFilter{
		FilterColName: "UTID",
	}
	dao.Fileter = &filter
	base.DaoPoolObj.Put("INDI_FANA", dao)
}
